<?php

Define("T_INT_FIELD", 0);
Define("T_STR_FIELD", 1);
Define("T_ARR_FIELD", 2);

class userCentreConfig
{
    public $arrayUserCentreFieldName = array (
        "UserID"      => array ("TYPE" => T_INT_FIELD),  // user 唯一ID
        "Email"       => array ("TYPE" => T_STR_FIELD),  // user 邮箱地址
        "UserName"    => array ("TYPE" => T_STR_FIELD),  // user的用户名
        "NickName"    => array ("TYPE" => T_STR_FIELD),  // 可变昵称
        "URL"         => array ("TYPE" => T_STR_FIELD),  // 用户个性化网址
        "RealName"    => array ("TYPE" => T_STR_FIELD),  // 真实姓名
        "Gender"      => array ("TYPE" => T_INT_FIELD),  // 性别
        "PhotoURL"    => array ("TYPE" => T_STR_FIELD),  // user的头像地址
        "FromSite"    => array ("TYPE" => T_STR_FIELD),  // 用户来源站点
        "State"       => array ("TYPE" => T_INT_FIELD),  // 用户状态
        "Actived"     => array ("TYPE" => T_INT_FIELD),  // 用户激活服务
        "LastModify"  => array ("TYPE" => T_INT_FIELD),  // 最后修改时间

        "Birthday"    => array ("TYPE" => T_INT_FIELD),  // 19830101表示1983年1月1日
        "Location"    => array ("TYPE" => T_STR_FIELD),
        "PhoneNum"    => array ("TYPE" => T_STR_FIELD),
        "IDCard"      => array ("TYPE" => T_STR_FIELD),  // 身份证。。记这个干嘛
        "QQ"          => array ("TYPE" => T_STR_FIELD), 
        "MSN"         => array ("TYPE" => T_STR_FIELD),
        "Question"    => array ("TYPE" => T_STR_FIELD),
        "Secure"      => array ("TYPE" => T_STR_FIELD),
        "RegsterIP"   => array ("TYPE" => T_STR_FIELD),
        "RegsterDate" => array ("TYPE" => T_STR_FIELD),
    );

    public $arrayStoreConfig = array (
        "MongoDB_Host"      => "127.0.0.1",
        "MongoDB_Port"      => 27017,
        "MongoDB_Database"  => "userDB",
        "MongoDB_Table"     => "userInfo",

        "Memcache_Enable"   => 1,
        "Memcache_Servers"  => array (
            array( "Host" => "127.0.0.1", "Port" => 11211 ),
            array( "Host" => "localhost", "Port" => 11211 ),
        ),
    );

    public function getUserCentreFieldName()
    {
        return $this->arrayUserCentreFieldName;
    }

    public function getStoreConfig()
    {
        return $this->arrayStoreConfig;
    }
};

?>
